package com.hellowx.qydcdev.service;

import com.hellowx.qydcdev.entity.Customer;
import com.hellowx.qydcdev.entity.LoginVO;

import javax.servlet.http.HttpServletRequest;

/**
 * Created on 2022/1/5.
 *
 * @author Hello WX
 */
public interface CustomerService {
    /**
     * 顾客注册
     * @param loginVO 登录用户信息
     * @param request request
     * @return 是否成功
     */
    boolean register(LoginVO loginVO, HttpServletRequest request);

    /**
     * 顾客登录
     * @param loginVO 顾客登录信息
     * @return token
     */
    String login(LoginVO loginVO);

    /**
     * 更新顾客信息
     * @param customer 顾客信息
     * @param request request
     * @return msg
     */
    String updateCustomer(Customer customer, HttpServletRequest request);
}
